# Gunther's solution
n = eval(input("Enter the start number: "))
m = n + 41
if -6<n<2:
    for i in range(n,m,7):
        print(format(i, "2"), sep=' \n ')